<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$header_charset}>" />
<link href="images/admin/admin.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="./include/common.js"></script>
<script language="javascript" type="text/javascript">
function checksubmit() {
	t = $('title');
	c = $('category');
	s = $('s');
	if(t.value == "") {
		alert("<{$lan.notitle}>");
		t.focus();
		return false;
	}
	if(c.value == "0") {
		alert("<{$lan.nocategory}>");
		c.focus();
		return false;
	}
	s.disabled = true;
}

function setcategory() {
	category = <{$category}>;
	if(category != 0) {
		$("category").value = category;
	}
}
</script>
</head>
<body onload="setcategory()">
<div class="block"></div>
<div class="block"></div>
<form enctype="multipart/form-data" action="<{$action}>" method="post" name="newitem" id="newitem" onsubmit="return checksubmit()">
<table width="99%" border="0" cellpadding="5" cellspacing="1" class="commontable" align="center">
<input type="hidden" name="MAX_FILE_SIZE" value="<{$maxattachsize}>" />
<tr class="header">
	<td colspan="2"><{$operate}> <{$modulename}></td>
</tr>
<{$htmlfields}>
</table>
<div class="block"></div>
<div id="extfieldstable"></div>
<div class="block2"></div>
<center><input type="submit" value="<{$lan.save}>" id="s"></center>
</form>
</body>
</html>